package com.example.aop.aspect;


import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

@Slf4j
//@Aspect
@Order(20)
@Configuration
public class AspectDemo2 {

    @Before("com.example.aop.aspect.AspectDemo1.pc()")
    public void before() {
        log.info("demo2 before==========");
    }

    @After("com.example.aop.aspect.AspectDemo1.pc()")
    public void after() {
        log.info("demo2 after==========");
    }

}
